package org.example.projecttwo.entity.dto.user.request;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.Email;
import jakarta.validation.constraints.Pattern;
import lombok.Data;

import java.time.LocalDate;
import java.time.LocalDateTime;

@Data
@Schema(description = "用户更多信息更新 DTO")
public class UpdateProfileDTO {

    @Schema(description = "手机号")
    @Pattern(regexp = "^1[3-9]\\d{9}$", message = "手机号格式不正确")
    private String phone;

    @Schema(description = "邮箱")
    @Email(message = "邮箱格式不正确")
    private String email;

    @Schema(description = "学院ID")
    private Long collegeId;

    @Schema(description = "专业班级")
    private String majorClass;

    @Schema(description = "学号")
    private String studentNo;

    @Schema(description = "性别 (1-男, 2-女)")
    private Integer gender;

    @Schema(description = "出生日期")
    private LocalDate birthday;
    
    @Schema(description = "注册时间")
    private LocalDateTime registerTime;
}